<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QtWebApp: stefanfrings::HttpRequest Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QtWebApp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classstefanfrings_1_1HttpRequest.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classstefanfrings_1_1HttpRequest-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">stefanfrings::HttpRequest Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This object represents a single HTTP request.  
 <a href="classstefanfrings_1_1HttpRequest.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="httprequest_8h_source.html">httprequest.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a45b0d7b99dbbb1b2c62afd8f51887995"><td class="memItemLeft" align="right" valign="top"><a id="a45b0d7b99dbbb1b2c62afd8f51887995"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a45b0d7b99dbbb1b2c62afd8f51887995">RequestStatus</a> { <br />
&#160;&#160;<b>waitForRequest</b>
, <b>waitForHeader</b>
, <b>waitForBody</b>
, <b>complete</b>
, <br />
&#160;&#160;<b>abort</b>
<br />
 }</td></tr>
<tr class="memdesc:a45b0d7b99dbbb1b2c62afd8f51887995"><td class="mdescLeft">&#160;</td><td class="mdescRight">Values for <a class="el" href="classstefanfrings_1_1HttpRequest.html#a1e53a0d5566400eae00e47b819a26c30" title="Get the status of this reqeust.">getStatus()</a> <br /></td></tr>
<tr class="separator:a45b0d7b99dbbb1b2c62afd8f51887995"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3c42bcee20cac0ba998d1844e7feff37"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a3c42bcee20cac0ba998d1844e7feff37">HttpRequest</a> (const QSettings *settings)</td></tr>
<tr class="memdesc:a3c42bcee20cac0ba998d1844e7feff37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classstefanfrings_1_1HttpRequest.html#a3c42bcee20cac0ba998d1844e7feff37">More...</a><br /></td></tr>
<tr class="separator:a3c42bcee20cac0ba998d1844e7feff37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfc7ae561e6ba03d21890ee1855df72b"><td class="memItemLeft" align="right" valign="top"><a id="adfc7ae561e6ba03d21890ee1855df72b"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#adfc7ae561e6ba03d21890ee1855df72b">~HttpRequest</a> ()</td></tr>
<tr class="memdesc:adfc7ae561e6ba03d21890ee1855df72b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:adfc7ae561e6ba03d21890ee1855df72b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87e7ca425b96545e062454f66e346caf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a87e7ca425b96545e062454f66e346caf">readFromSocket</a> (QTcpSocket *socket)</td></tr>
<tr class="memdesc:a87e7ca425b96545e062454f66e346caf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the HTTP request from a socket.  <a href="classstefanfrings_1_1HttpRequest.html#a87e7ca425b96545e062454f66e346caf">More...</a><br /></td></tr>
<tr class="separator:a87e7ca425b96545e062454f66e346caf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e53a0d5566400eae00e47b819a26c30"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a45b0d7b99dbbb1b2c62afd8f51887995">RequestStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a1e53a0d5566400eae00e47b819a26c30">getStatus</a> () const</td></tr>
<tr class="memdesc:a1e53a0d5566400eae00e47b819a26c30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the status of this reqeust.  <a href="classstefanfrings_1_1HttpRequest.html#a1e53a0d5566400eae00e47b819a26c30">More...</a><br /></td></tr>
<tr class="separator:a1e53a0d5566400eae00e47b819a26c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3c92d9c0f5279c6d5b1bfdb47aaa5e0"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ae3c92d9c0f5279c6d5b1bfdb47aaa5e0">getMethod</a> () const</td></tr>
<tr class="memdesc:ae3c92d9c0f5279c6d5b1bfdb47aaa5e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the method of the HTTP request (e.g.  <a href="classstefanfrings_1_1HttpRequest.html#ae3c92d9c0f5279c6d5b1bfdb47aaa5e0">More...</a><br /></td></tr>
<tr class="separator:ae3c92d9c0f5279c6d5b1bfdb47aaa5e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e9f87cc06cdeae2ca03c97d576c217b"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a9e9f87cc06cdeae2ca03c97d576c217b">getPath</a> () const</td></tr>
<tr class="memdesc:a9e9f87cc06cdeae2ca03c97d576c217b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the decoded path of the HTPP request (e.g.  <a href="classstefanfrings_1_1HttpRequest.html#a9e9f87cc06cdeae2ca03c97d576c217b">More...</a><br /></td></tr>
<tr class="separator:a9e9f87cc06cdeae2ca03c97d576c217b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad472e46e79a5bfc676f5670f3655009b"><td class="memItemLeft" align="right" valign="top">const QByteArray &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ad472e46e79a5bfc676f5670f3655009b">getRawPath</a> () const</td></tr>
<tr class="memdesc:ad472e46e79a5bfc676f5670f3655009b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the raw path of the HTTP request (e.g.  <a href="classstefanfrings_1_1HttpRequest.html#ad472e46e79a5bfc676f5670f3655009b">More...</a><br /></td></tr>
<tr class="separator:ad472e46e79a5bfc676f5670f3655009b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfd550673eb70a6477b0c04eb2023bad"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#adfd550673eb70a6477b0c04eb2023bad">getVersion</a> () const</td></tr>
<tr class="memdesc:adfd550673eb70a6477b0c04eb2023bad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the version of the HTPP request (e.g.  <a href="classstefanfrings_1_1HttpRequest.html#adfd550673eb70a6477b0c04eb2023bad">More...</a><br /></td></tr>
<tr class="separator:adfd550673eb70a6477b0c04eb2023bad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a490265254cf6ad8b642205aef325d4da"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a490265254cf6ad8b642205aef325d4da">getHeader</a> (const QByteArray &amp;name) const</td></tr>
<tr class="memdesc:a490265254cf6ad8b642205aef325d4da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of a HTTP request header.  <a href="classstefanfrings_1_1HttpRequest.html#a490265254cf6ad8b642205aef325d4da">More...</a><br /></td></tr>
<tr class="separator:a490265254cf6ad8b642205aef325d4da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac59f41dbdc579cc1827427d6e77303af"><td class="memItemLeft" align="right" valign="top">QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ac59f41dbdc579cc1827427d6e77303af">getHeaders</a> (const QByteArray &amp;name) const</td></tr>
<tr class="memdesc:ac59f41dbdc579cc1827427d6e77303af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the values of a HTTP request header.  <a href="classstefanfrings_1_1HttpRequest.html#ac59f41dbdc579cc1827427d6e77303af">More...</a><br /></td></tr>
<tr class="separator:ac59f41dbdc579cc1827427d6e77303af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a7f04cbe53ffc8d54c9b21fbd55704"><td class="memItemLeft" align="right" valign="top">QMultiMap&lt; QByteArray, QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a14a7f04cbe53ffc8d54c9b21fbd55704">getHeaderMap</a> () const</td></tr>
<tr class="memdesc:a14a7f04cbe53ffc8d54c9b21fbd55704"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all HTTP request headers.  <a href="classstefanfrings_1_1HttpRequest.html#a14a7f04cbe53ffc8d54c9b21fbd55704">More...</a><br /></td></tr>
<tr class="separator:a14a7f04cbe53ffc8d54c9b21fbd55704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad231eca50e6a0cba6b01c5093542447e"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ad231eca50e6a0cba6b01c5093542447e">getParameter</a> (const QByteArray &amp;name) const</td></tr>
<tr class="memdesc:ad231eca50e6a0cba6b01c5093542447e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of a HTTP request parameter.  <a href="classstefanfrings_1_1HttpRequest.html#ad231eca50e6a0cba6b01c5093542447e">More...</a><br /></td></tr>
<tr class="separator:ad231eca50e6a0cba6b01c5093542447e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0711a770d0547a75f5cfb68c9ac1a760"><td class="memItemLeft" align="right" valign="top">QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a0711a770d0547a75f5cfb68c9ac1a760">getParameters</a> (const QByteArray &amp;name) const</td></tr>
<tr class="memdesc:a0711a770d0547a75f5cfb68c9ac1a760"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the values of a HTTP request parameter.  <a href="classstefanfrings_1_1HttpRequest.html#a0711a770d0547a75f5cfb68c9ac1a760">More...</a><br /></td></tr>
<tr class="separator:a0711a770d0547a75f5cfb68c9ac1a760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25c8d4b0ff23dc67bbbbb2b03bba3a5b"><td class="memItemLeft" align="right" valign="top"><a id="a25c8d4b0ff23dc67bbbbb2b03bba3a5b"></a>
QMultiMap&lt; QByteArray, QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a25c8d4b0ff23dc67bbbbb2b03bba3a5b">getParameterMap</a> () const</td></tr>
<tr class="memdesc:a25c8d4b0ff23dc67bbbbb2b03bba3a5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all HTTP request parameters. <br /></td></tr>
<tr class="separator:a25c8d4b0ff23dc67bbbbb2b03bba3a5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbeb8becf2709b15be3096bcd3b85181"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#abbeb8becf2709b15be3096bcd3b85181">getBody</a> () const</td></tr>
<tr class="memdesc:abbeb8becf2709b15be3096bcd3b85181"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the HTTP request body.  <a href="classstefanfrings_1_1HttpRequest.html#abbeb8becf2709b15be3096bcd3b85181">More...</a><br /></td></tr>
<tr class="separator:abbeb8becf2709b15be3096bcd3b85181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac85c0bf7867adf6145902c51d4bc4701"><td class="memItemLeft" align="right" valign="top">QTemporaryFile *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ac85c0bf7867adf6145902c51d4bc4701">getUploadedFile</a> (const QByteArray fieldName) const</td></tr>
<tr class="memdesc:ac85c0bf7867adf6145902c51d4bc4701"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get an uploaded file.  <a href="classstefanfrings_1_1HttpRequest.html#ac85c0bf7867adf6145902c51d4bc4701">More...</a><br /></td></tr>
<tr class="separator:ac85c0bf7867adf6145902c51d4bc4701"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8df857484bbe4cc8362ddd49a604f649"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a8df857484bbe4cc8362ddd49a604f649">getCookie</a> (const QByteArray &amp;name) const</td></tr>
<tr class="memdesc:a8df857484bbe4cc8362ddd49a604f649"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of a cookie.  <a href="classstefanfrings_1_1HttpRequest.html#a8df857484bbe4cc8362ddd49a604f649">More...</a><br /></td></tr>
<tr class="separator:a8df857484bbe4cc8362ddd49a604f649"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a408b9110494fbeb1d5e1140bc2a49112"><td class="memItemLeft" align="right" valign="top">QMap&lt; QByteArray, QByteArray &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a408b9110494fbeb1d5e1140bc2a49112">getCookieMap</a> ()</td></tr>
<tr class="memdesc:a408b9110494fbeb1d5e1140bc2a49112"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get all cookies.  <a href="classstefanfrings_1_1HttpRequest.html#a408b9110494fbeb1d5e1140bc2a49112">More...</a><br /></td></tr>
<tr class="separator:a408b9110494fbeb1d5e1140bc2a49112"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7cd8408c9b67f1632784468ace2d560"><td class="memItemLeft" align="right" valign="top">QHostAddress&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#ae7cd8408c9b67f1632784468ace2d560">getPeerAddress</a> () const</td></tr>
<tr class="memdesc:ae7cd8408c9b67f1632784468ace2d560"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the address of the connected client.  <a href="classstefanfrings_1_1HttpRequest.html#ae7cd8408c9b67f1632784468ace2d560">More...</a><br /></td></tr>
<tr class="separator:ae7cd8408c9b67f1632784468ace2d560"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a83651afcea6094403fb7cdb2d947cd0c"><td class="memItemLeft" align="right" valign="top">static QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a83651afcea6094403fb7cdb2d947cd0c">urlDecode</a> (const QByteArray source)</td></tr>
<tr class="memdesc:a83651afcea6094403fb7cdb2d947cd0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode an URL parameter.  <a href="classstefanfrings_1_1HttpRequest.html#a83651afcea6094403fb7cdb2d947cd0c">More...</a><br /></td></tr>
<tr class="separator:a83651afcea6094403fb7cdb2d947cd0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1a26a85c96397fab7acf42d9c3fc61df"><td class="memItemLeft" align="right" valign="top"><a id="a1a26a85c96397fab7acf42d9c3fc61df"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>HttpSessionStore</b></td></tr>
<tr class="separator:a1a26a85c96397fab7acf42d9c3fc61df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This object represents a single HTTP request. </p>
<p>It reads the request from a TCP socket and provides getters for the individual parts of the request. </p>
<p>The follwing config settings are required: <code></p><pre>
maxRequestSize=16000
maxMultiPartSize=1000000
</pre><p></code> </p>
<p>MaxRequestSize is the maximum size of a HTTP request. In case of multipart/form-data requests (also known as file-upload), the maximum size of the body must not exceed maxMultiPartSize. The body is always a little larger than the file itself. </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8h_source.html#l00038">38</a> of file <a class="el" href="httprequest_8h_source.html">httprequest.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3c42bcee20cac0ba998d1844e7feff37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c42bcee20cac0ba998d1844e7feff37">&#9670;&nbsp;</a></span>HttpRequest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpRequest::HttpRequest </td>
          <td>(</td>
          <td class="paramtype">const QSettings *&#160;</td>
          <td class="paramname"><em>settings</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">settings</td><td>Configuration settings </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00013">13</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="abbeb8becf2709b15be3096bcd3b85181"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbeb8becf2709b15be3096bcd3b85181">&#9670;&nbsp;</a></span>getBody()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getBody </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the HTTP request body. </p>
<p><br  />
 </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00381">381</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a8df857484bbe4cc8362ddd49a604f649"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8df857484bbe4cc8362ddd49a604f649">&#9670;&nbsp;</a></span>getCookie()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getCookie </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the value of a cookie. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Name of the cookie </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00559">559</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a408b9110494fbeb1d5e1140bc2a49112"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a408b9110494fbeb1d5e1140bc2a49112">&#9670;&nbsp;</a></span>getCookieMap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QMap&lt; QByteArray, QByteArray &gt; &amp; HttpRequest::getCookieMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get all cookies. </p>
<p>Get the map of cookies. </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00565">565</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a490265254cf6ad8b642205aef325d4da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a490265254cf6ad8b642205aef325d4da">&#9670;&nbsp;</a></span>getHeader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getHeader </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the value of a HTTP request header. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Name of the header, not case-senitive. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If the header occurs multiple times, only the last one is returned. </dd></dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00351">351</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a14a7f04cbe53ffc8d54c9b21fbd55704"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14a7f04cbe53ffc8d54c9b21fbd55704">&#9670;&nbsp;</a></span>getHeaderMap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QMultiMap&lt; QByteArray, QByteArray &gt; HttpRequest::getHeaderMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get all HTTP request headers. </p>
<p>Note that the header names are returned in lower-case. </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00361">361</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ac59f41dbdc579cc1827427d6e77303af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac59f41dbdc579cc1827427d6e77303af">&#9670;&nbsp;</a></span>getHeaders()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; HttpRequest::getHeaders </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the values of a HTTP request header. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Name of the header, not case-senitive. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00356">356</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ae3c92d9c0f5279c6d5b1bfdb47aaa5e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3c92d9c0f5279c6d5b1bfdb47aaa5e0">&#9670;&nbsp;</a></span>getMethod()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getMethod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the method of the HTTP request (e.g. </p>
<p>"GET") </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00327">327</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ad231eca50e6a0cba6b01c5093542447e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad231eca50e6a0cba6b01c5093542447e">&#9670;&nbsp;</a></span>getParameter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getParameter </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the value of a HTTP request parameter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Name of the parameter, case-sensitive. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If the parameter occurs multiple times, only the last one is returned. </dd></dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00366">366</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a0711a770d0547a75f5cfb68c9ac1a760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0711a770d0547a75f5cfb68c9ac1a760">&#9670;&nbsp;</a></span>getParameters()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; HttpRequest::getParameters </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the values of a HTTP request parameter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Name of the parameter, case-sensitive. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00371">371</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a9e9f87cc06cdeae2ca03c97d576c217b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e9f87cc06cdeae2ca03c97d576c217b">&#9670;&nbsp;</a></span>getPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the decoded path of the HTPP request (e.g. </p>
<p>"/index.html") </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00333">333</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ae7cd8408c9b67f1632784468ace2d560"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7cd8408c9b67f1632784468ace2d560">&#9670;&nbsp;</a></span>getPeerAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHostAddress HttpRequest::getPeerAddress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the address of the connected client. </p>
<p>Note that multiple clients may have the same IP address, if they share an internet connection (which is very common). </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00575">575</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ad472e46e79a5bfc676f5670f3655009b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad472e46e79a5bfc676f5670f3655009b">&#9670;&nbsp;</a></span>getRawPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QByteArray &amp; HttpRequest::getRawPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the raw path of the HTTP request (e.g. </p>
<p>"/file%20with%20spaces.html") </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00339">339</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a1e53a0d5566400eae00e47b819a26c30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e53a0d5566400eae00e47b819a26c30">&#9670;&nbsp;</a></span>getStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstefanfrings_1_1HttpRequest.html#a45b0d7b99dbbb1b2c62afd8f51887995">HttpRequest::RequestStatus</a> HttpRequest::getStatus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the status of this reqeust. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classstefanfrings_1_1HttpRequest.html#a45b0d7b99dbbb1b2c62afd8f51887995" title="Values for getStatus()">RequestStatus</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00321">321</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="ac85c0bf7867adf6145902c51d4bc4701"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac85c0bf7867adf6145902c51d4bc4701">&#9670;&nbsp;</a></span>getUploadedFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QTemporaryFile * HttpRequest::getUploadedFile </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>fieldName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get an uploaded file. </p>
<p>The file is already open. It will be closed and deleted by the destructor of this <a class="el" href="classstefanfrings_1_1HttpRequest.html" title="This object represents a single HTTP request.">HttpRequest</a> object (after processing the request). </p>
<p>For uploaded files, the method <a class="el" href="classstefanfrings_1_1HttpRequest.html#a0711a770d0547a75f5cfb68c9ac1a760" title="Get the values of a HTTP request parameter.">getParameters()</a> returns the original fileName as provided by the calling web browser. </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00554">554</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="adfd550673eb70a6477b0c04eb2023bad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfd550673eb70a6477b0c04eb2023bad">&#9670;&nbsp;</a></span>getVersion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::getVersion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the version of the HTPP request (e.g. </p>
<p>"HTTP/1.1") </p>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00345">345</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a87e7ca425b96545e062454f66e346caf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87e7ca425b96545e062454f66e346caf">&#9670;&nbsp;</a></span>readFromSocket()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpRequest::readFromSocket </td>
          <td>(</td>
          <td class="paramtype">QTcpSocket *&#160;</td>
          <td class="paramname"><em>socket</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read the HTTP request from a socket. </p>
<p>This method is called by the connection handler repeatedly until the status is RequestStatus::complete or RequestStatus::abort. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>Source of the data </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00291">291</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<a id="a83651afcea6094403fb7cdb2d947cd0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83651afcea6094403fb7cdb2d947cd0c">&#9670;&nbsp;</a></span>urlDecode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpRequest::urlDecode </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Decode an URL parameter. </p>
<p>E.g. replace "%23" by '#' and replace '+' by ' '. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>The url encoded strings </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>QUrl::toPercentEncoding for the reverse direction </dd></dl>

<p class="definition">Definition at line <a class="el" href="httprequest_8cpp_source.html#l00386">386</a> of file <a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>httpserver/<a class="el" href="httprequest_8h_source.html">httprequest.h</a></li>
<li>httpserver/<a class="el" href="httprequest_8cpp_source.html">httprequest.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>stefanfrings</b></li><li class="navelem"><a class="el" href="classstefanfrings_1_1HttpRequest.html">HttpRequest</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
